package com.Controller;

import com.Service.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-11-15
 * Time: 19:04
 */
@Controller
public class BeanScopesController {
    @Autowired
    private User user;
    public User getUser() {
        System.out.println("修改前的数据：" +user);
        user.setName("旺旺");//将名字进行修修改
        return user;
    }

}
